package com.vincent;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by vincent on 2018/7/27.
 */
public class ProducerTest {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);
        for (int i = 0; i < 5; i++) {

            executorService.execute(new SendTask(i));
        }
        executorService.shutdown();

      }
}
